#!/bin/sh

rm pkg/*.tar.gz
PKG="odmusic"
DATE=`date +%Y%m%d`
USR="--owner 1000 --group 1000 --same-permissions"
EXCLUDE=' --exclude "*~" --exclude .svn ' 

echo "Background music" > pkg/$PKG.desc
cp pkg/*.desc ./var/pkg

rm -fr pkg/*.tar.gz
tar zcf  pkg/$PKG-$DATE.od.noarch.tar.gz etc usr var  $USR $EXCLUDE
echo "Archivo creado"
